package org.lanyu.springainovel.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime;

@TableName("ai_model")
@Data
public class AiModel {
    public AiModel() {
        super();
    }

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "供应商")
    private String vendor;

    @Schema(description = "图标URL")
    private String icon;

    @Schema(description = "模型名称")
    private String name;

    @Schema(description = "密钥")
    private String apiKey;

    @Schema(description = "模型API地址")
    private String apiUrl;

    @Schema(description = "标签（推理、对话、图片、语音等，逗号分隔")
    private String tags;

    @Schema(description = "类型（对话、生图、音频、视频、嵌入）")
    private String type;

    @Schema(description = "模型可用状�?1:可用 0:不可用")
    private Integer status;

    @Schema(description = "模型描述")
    private String description;

    @Schema(description = "模型参数（如温度等，json格式")
    private String params;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}
